package cn.stylefeng.guns.sys.modular.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 员工信息表
 * </p>
 * @author liuy
 * @since
 */
@TableName("sys_emp")
@Data
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 编号
     */
    @TableField("bh")
    @Excel(name = "编号")
    private String bh;
    /**
     * 店名
     */
    @TableField("dm")
    private String dm;
    /**
     * 姓名
     */
    @TableField("xm")
    private String xm;
    /**
     * 职务
     */
    @TableField("zw")
    private String zw;
    /**
     * 入职时间
     */
    @TableField("rq")
    private String rq;
    /**
     * 电话
     */
    @TableField("tel")
    private String tel;
    /**
     * 身份证
     */
    @TableField("sfz")
    private String sfz;
    /**
     * 用户银行卡号
     */
    @TableField("yhk")
    private String yhk;
    /**
     * 备注
     */
    @TableField("bz")
    private String bz;
    /**
     * 区域
     */
    @TableField("qy")
    private String qy;
    /**
     *二级区域
     */
    @TableField("eqy")
    private String eqy;
    /**
     * 工资
     */
    @TableField("gz")
    private String gz;


    //银行卡状态;1正常, 2异常
    @TableField("yhk_status")
    private String yhkStatus;

    //银行名称
    @TableField("card_name")
    private String cardName;

    //银行简称
    @TableField("bank")
    private String bank;

    //银行行号
    @TableField("hh")
    private String hh;

    //钉钉上获取的员工详情
    @TableField("dd_detil")
    private String ddDetil;

    //状态
    @TableField("status")
    private String status;

    //openid
    @TableField("openid")
    private String openid;

    //状态
    @TableField("status_view")
    private String statusView;

    //部门id列表
    @TableField(exist = false)
    private List<Long> deptids;

    public Emp() {

    }

    public Emp(String bh, String dm, String xm, String zw, String rq, String tel, String qy, String eqy,String ddDetil) {
        this.bh = bh;
        this.dm = dm;
        this.xm = xm;
        this.zw = zw;
        this.rq = rq;
        this.tel = tel;
        this.qy = qy;
        this.eqy = eqy;
        this.ddDetil = ddDetil;
    }
}
